package com.qcby.service;

import com.qcby.common.ExamDetail.ExamSubmitRequest;
import com.qcby.entity.Exam;
import com.qcby.entity.QuestionBank;
import com.qcby.entity.Result;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface ExamDetailService {

    //通过id加载考试信息
    Result<Exam> loadExamInfo(int id);

    //加载选择题信息
    Result<List<QuestionBank>> loadMultipleChoiceQuestions(int e_id);

    //加载填空题
    Result<List<QuestionBank>> loadFillInTheBlankQuestions(int e_id);

    //加载判断题
    Result<List<QuestionBank>> loadingTrueOrFalseQuestions(int e_id);

    //加载解答题
    Result<List<QuestionBank>> loadShortAnswerQuestions(int e_id);

    //加载计算题
    Result<List<QuestionBank>> loadingCalculationQuestions(int e_id);

    //将上传的数据发送给ai
    Result<Integer> submitToAI(@RequestBody ExamSubmitRequest request);
}
